﻿@{var nombre = Session["Nombre"] as string;
  var admin = Session["Admin"] as string;}
<!DOCTYPE html>
<html lang="es">
    <head> 
        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width" />
        <script type="text/javascript"
            src='https://www.google.com/jsapi?autoload={"modules":[{"name":"visualization","version":"1.1","packages":["treemap","corechart","table"]}]}'>
        </script>
        <script type="text/javascript" src="https://www.google.com/jsapi"></script>
        <title>@ViewBag.Title - IQReportes</title>
        <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
        <!--<link href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" rel="stylesheet"/>-->
        
        
        @Scripts.Render("~/bundles/modernizr")
        @Scripts.Render("~/bundles/jquery")
        <!-- boostrap-->
        
        <script src="~/Content/bootstrap/js/bootstrap.min.js"></script>
        <script src="~/Scripts/bootstrap-datepicker.js"></script>
        <script src="~/Scripts/bootstrap-filestyle.min.js"></script>
        <script src="~/Scripts/spin.min.js"></script>
        <link href="~/Content/datepicker.css" rel="stylesheet" />
        <link href="~/Content/bootstrap/css/bootstrap.css" rel="stylesheet" />
        <link href="~/Content/bootstrap/css/bootstrap-responsive.css" rel="stylesheet" />
        
        <!-- end bootstrap-->
        <link href="~/Content/MyStyle.css" rel="stylesheet" />
        <!--<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.11/jquery-ui.min.js"></script>-->
    </head>
    <body>
        <div class="container-fluid">
            <div  id="logo"><div id="textoLogo">IQcorp</div></div>
            <div class="navbar navbar-inverse navbar-static-top">
            
              <div class="navbar-inner">
                <div class="container">
                  <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                  </button>
                  <a class="brand" href='@Url.Action("Index","Home")'>IQ Reportes</a>
                  <div class="nav-collapse collapse">
                    <ul class="nav">
                        <li id="Transacciones">@Html.ActionLink("Transacciones", "Index", "Transacciones")</li>
                        <li id="PanelControl">@Html.ActionLink("Panel de Control", "Index", "PanelControl")</li>
                        <li id="Configuracion">@Html.ActionLink("Configuración", "Configuracion", "Usuario")</li>
                        <li id="Usuarios" style="@(admin.CompareTo("1")==0? "":"display:none" )">
                            @Html.ActionLink("Usuarios", "Index", "Usuario")
                        </li>
                        <li id="Perfiles" style="@(admin.CompareTo("1")==0? "":"display:none" )">
                            @Html.ActionLink("Perfiles", "Index", "Perfil")
                        </li>
                    </ul>
                    <div class="navbar-text pull-right">
                        <ul class="nav pull-right">
                            <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Bienvenido, @nombre .<b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                    <!--<li><a href="#" id="cambiarClaveID"><i class="icon-cog"></i> Cambiar clave</a></li>-->
                                    <li><a href='@Url.Action("CambiarClave","Usuario")' id="cambiarClaveID"><i class="icon-cog"></i> Cambiar clave</a></li>
                                    <li class="divider"></li>
                                    <li><a href="@Url.Action("Logout","Usuario")"><i class="icon-off"></i> Logout</a></li>
                                </ul>
                            </li>
                        </ul>
                    </div>
                  </div><!--/.nav-collapse -->
                </div>
              </div>
            </div>
        </div>
        

        @RenderSection("featured", required: false)
        @RenderBody()
        @RenderSection("scripts", required: false)
        
    </body>
    
</html>
